import './App.less';
import React from 'react';
import {BrowserRouter, Route,Switch} from "react-router-dom";
import {Button,message} from 'antd';

import Login from "./pages/login/login";
import Admin from "./pages/admin/index";
function App() {
    const info = () => {
        message.info('This is a normal message');
    };
  return (
    <div className="App">
      <Button onClick={info} type="primary">Button</Button>
        <BrowserRouter>
            <Switch>
                <Route path='/login' component={Login}></Route>
                <Route path='/admin' component={Admin}></Route>
            </Switch>

        </BrowserRouter>

    </div>
  );
}
export default App;
